import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useOssStore = defineStore('oss', () => {

  const client = ref()

  const ossFrom: OssForm = {
    region: 'oss-cn-hangzhou',
    keyId: 'LTAI5tCccmGS9hjDaoeabNwa',
    key_secret: 'BITJ1pjAPIYXXG4QfiCb8Z0LQ1ocg9',
    bucket: 'password-manager-sc',
  }

  function setClient(value: any) {
    client.value = value
  }

  function getClient() {
    return client.value
  }

  function getOssFrom() {
    return ossFrom
  }


  return { setClient, getClient,getOssFrom }
})